public class Outter {
    class Inner {
    }

    public void fun() {
        Inner in = new Inner();
    }

    public void fun2() {
        Outter out = new Outter();
        Outter.Inner in = out.new Inner();
        Outter.Inner in2 = new Outter().new Inner();
        Outter.Inner in3 = new Outter.Inner();
    }
}